<?php
function getSfhbHtml($image_link,$image_height,$image_url,$main_title,$main_title_color,$content_title,$content_title_color,$purchase_bg_color,$purchase_title,$purchase_title_color)
{
    $image_height = $image_height.'px';
    return "
                <td>
                    <a  $image_link 
                       style='display: block;height: $image_height;width: 960px;
                               background-image: url($image_url);text-decoration: none;'>
                        <div style='top: 70%;position: relative;text-align: center;height: 200px;'>
                            <div style='color: $main_title_color;font-size: 43px;font-family:Arial;font-weight:bold;'>
                                $main_title
                            </div>
                            <div style='color: $content_title_color;font-size: 15px;font-family:Arial;padding-bottom: 15px;'>
                                $content_title
                            </div>
                            <div style='background-color: $purchase_bg_color ;height: 30px;width: 140px;z-index: 40;margin: 0 auto;'>
                                <div style='font-size: 18px;color: $purchase_title_color;padding-top: 4px;font-family:Arial;'>$purchase_title</div>
                            </div>
                        </div>
                    </a>
                </td>    
    ";
}

?>
<div class='module dshop-um-wl-sfhb module-thirdparty' style='margin-bottom:<? myEcho('bottom_margin',30)?>px; background-color:<? myEcho('bottom_color','#555555')?>'>
    <div class='container' >
        <table>
            <tr>
                <?php
                    $imageArray = array('assets/images/left-960.jpg','assets/images/right-960.jpg');
                    for($i =0 ;$i < 2;$i ++){
                        echo getSfhbHtml(
                                getHref('image_link_'.$i),
                                getParam('image_height',500),
                                getParam('image_url_'.$i,$imageArray[$i]),
                                getParam('main_title_'.$i,'4 PRICE SUIT'),
                                getParam('main_title_color_'.$i,'black'),
                                getParam('content_title_'.$i,'BEDDING ARTICLE BEDDING ARTICLE BEDDING ARTICLE'),
                                getParam('content_title_color_'.$i,'#63B513'),
                                getParam('purchase_bg_color_'.$i,'#63B513'),
                                getParam('purchase_title_'.$i,'BUY NOW'),
                                getParam('purchase_title_color_'.$i,'white'));
                    }
                ?>
            </tr>
        </table>


    </div>
</div>
